package com.futureCloudMOM.core.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.futureCloudMOM.core.entity.FBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Produce_TurnInfo", description = "工序流转卡")
@TableName(value = "Produce_TurnInfo")
public class ProduceTurnInfo extends FBaseEntity implements Serializable {


    
    @NotBlank(message="[流转码]不能为空")
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("流转码")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "turnCode")
    private String turnCode;
    
    @NotNull(message="[工序Id]不能为空")
    @ApiModelProperty("工序Id")
    @TableField(value = "procId")
    private Long procId;
    
    @NotNull(message="[部门ID]不能为空")
    @ApiModelProperty("部门ID")
    @TableField(value = "departmentId")
    private Long departmentId;
    
    @NotNull(message="[工作中心Id]不能为空")
    @ApiModelProperty("工作中心Id")
    @TableField(value = "workcenterId")
    private Long workcenterId;
    
    @NotNull(message="[派工单Id]不能为空")
    @ApiModelProperty("派工单Id")
    @TableField(value = "dispatchId")
    private Long dispatchId;
    
    @NotNull(message="[生产订单ID]不能为空")
    @ApiModelProperty("生产订单ID")
    @TableField(value = "taskBillId")
    private Long taskBillId;
    
    @NotNull(message="[生产订单子表ID]不能为空")
    @ApiModelProperty("生产订单子表ID")
    @TableField(value = "taskBillSubID")
    private Long taskBillSubID;
    
    @NotNull(message="[物料ID]不能为空")
    @ApiModelProperty("物料ID")
    @TableField(value = "materialId")
    private Long materialId;
    
    @NotBlank(message="[数量]不能为空")
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("数量")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "qty")
    private String qty;
    
    @NotNull(message="[状态(0:创建;1:可用;2:禁用）]不能为空")
    @ApiModelProperty("状态(0:创建;1:可用;2:禁用）")
    @TableField(value = "status")
    private Long status;
    
    @NotBlank(message="[批次]不能为空")
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("批次")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "batchNo")
    private String batchNo;






}

